Fragment types not matching

In BeatBoxActivity createFragment() method , BeatBoxFragment cannot convert to Fragment. What should i do?
Fragment is imported from support v.4

Check all of your imports to make sure that you are importing the support version of fragments. Your imports may be correct in the Activity but may not be correct in your fragment.